<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>功能树选择</title>
	<link type="text/css" rel="stylesheet" href="../../../../resources/bootstrap/css/bootstrap.min.css"/>
	<link type="text/css" rel="stylesheet" href="../../../../resources/layui/css/layui.css"/>
	<link rel="stylesheet" type="text/css" href="../../../../resources/jquery-easyui/themes/default/easyui.css" />
	<link rel="stylesheet" type="text/css" href="../../../../resources/jquery-easyui/themes/icon.css" />
	<link type="text/css" rel="stylesheet" href="../../../../comon/css/zTreeStyle/zTreeStyle.css"></link>
	<script type="text/javascript" src="../../../../comon/js/jquery/jquery.min.js"></script>
	<script type="text/javascript" src="../../../../comon/js/jquery/jquery.ztree.core-3.1.js"></script>
	<script type="text/javascript" src="../../../../comon/js/jquery/jquery.ztree.excheck-3.1.js"></script>
	<script type="text/javascript" src="../../../../comon/js/comon.main.js"></script>
	<script type="text/javascript" src="../../../../comon/js/tree.main.js"></script>
	<script type="text/javascript" src="../../../../resources/jquery-easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="../../../../resources/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript" src="../../../../resources/bootstrap/js/bootstrap.min.js" charset="utf-8"></script>
	<script type="text/javascript" src="../../../../resources/layui/layui.js" charset="utf-8"></script>
	</head>
	<body>
		<div id="mainListView" style="width: 100%; height: 100%;" onchecked="treeCheched"></div>
		<script type="text/javascript">
			window.isWriteLog = false; //不写系统日志
			var Mtree = new tlv8.createTree(document.getElementById("mainListView"),
					'GetFunctTreeAction', 'file', null, true);
			var checkFuncID = null;
			var checkData = new Map();
			function treeCheched(r) {
				var chs = r.checkedID;
				checkData = new Map();
				for (i in chs) {
					var ChA = document.getElementById(chs[i]);
					var activityfName = ChA.getAttribute("activityFName");
					var process = ChA.getAttribute("process");
					var activity = ChA.getAttribute("activity");
					var eurl = ChA.getAttribute("url");
					var sUrl = process + activity;
					if (sUrl && sUrl != "") {
						var urlData = {
							label : activityfName,
							process : process,
							activity : activity,
							url : eurl
						};
						checkData.put(sUrl, urlData);
					}
				}
			}
			function dailogEngin() {
				//alert("确定"); //对话框点击确定时调用此函数
				return checkData;
			}
		</script>
	</body>
</html>